<?
//引入所有子系统信息
include_once("../../../common/script/extender_import.php");


//**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
$_plate=$plate['asset'];


//获取板块的设置
include_once("../model/setting.php");



//根据页面信息，组装查找语句
//include_once("module/set_page.php");


//根据页面数量信息，筛选信息，创造url，供页码,跳转等使用
include_once("script/set_url.php");



//获取单条数据，这个应该可以卸载model中
$data=select_one_line_all_items($table_prefix.$_plate['table']['data'],"nid = '".$_REQUEST['nid']."'");
$data_brand=explode(",",$data['brand']);
$data_asset_type=explode(",",$data['asset_type']);
$data_asset_class=explode(",",$data['asset_class']);


//按结品牌树
$brand_list=select_lines_all_items($table_prefix."brand","nid desc","parent_id = 0","");

//把设置种的标签拆成数组，用于循环比较
$tag_list = explode(";", $setting[$_plate['id']]['tag']);
$file_type_list = explode(";", $setting[$_plate['id']]['file_type']);
$asset_type_list = explode(";", $setting[$_plate['id']]['asset_type']);
$asset_class_list = explode(";", $setting[$_plate['id']]['asset_class']);



$product_list=select_lines_all_items($table_prefix."detail","nid desc","publish = 1 ","");

foreach ($product_list as $key => $value)
{
    $product_list[$key]['id']=$value['nid'];
}

$asset_product_string=$data['product'];
$asset_product_list=array_filter(explode(",",$asset_product_string));

?>

